<div class="content-titulo">
    <h2><?php echo $this->titulo;?></h2>
    <div class="content-btn">
        <a href="<?php echo $this->url(array('controller' => $this->controller, 'action' => 'edit')); ?>">+</a>
    </div>
</div>

<div class="content-list">
    
<?php foreach ($this->result as $row) { 
    
    $per = New Sistema_Model_DbTable_Permissao();
    $per = $per->fetchRow('PER_ID = '.$row->PER_ID);

?>
    <div class="item" style="height:100px">    
        <div class="col" style="width: 250px">
            <p><strong>Código: <?php echo $row->USU_ID; ?></strong></p>
            <p><strong>Título: </strong><?php echo $row->USU_NOME; ?></p>
            <p><strong>E-mail: </strong><?php echo $row->USU_EMAIL; ?></p>
            
        </div>
        <div class="col" style="width: 250px">
            <p><strong>Login: </strong><?php echo $row->USU_LOGIN; ?></p>
            <p><strong>Grupo: </strong><?php echo $per->PER_NOME; ?></p>
            <p><strong>Status: </strong><?php echo tools::returnStatus($row->USU_STA); ?></p>
        </div>
        
        <div class="col" style="width: 50px">
            
        </div>

        <div class="btn-actions" style="padding-top: 10px;">
            <?php if($this->per_edt){?><a class="btn-pdr" href="<?php echo $this->url(array('controller' => $this->controller, 'action' => 'edit', 'id' => $row->USU_ID)); ?>">Editar</a><?php }?>
        </div>

      </div>
    <?php } ?>
</div>
<?php echo $this->paginationControl($this->paginator, 'Sliding', 'pagination.phtml'); ?>

